
// import  testRoutes  from "./test/test_routes_index";
import { RouteRecordRaw, createRouter, createWebHistory } from "vue-router";

import { staticShowRoutes } from "./static_routes";



// const layoutTest={
//     name: "LayoutTest",
//     path: "/LayoutTest",
//     component: LayoutTest,
// }




// let routes=staticRoutes;
let routes=staticShowRoutes;


// routes=routes.concat(testRoutes);

// routes.push(layoutTest);
// routes.push(systemRoutes);
console.log('in routes index: routers ',routes);

const router = createRouter({
    history: createWebHistory(),
    routes,
    scrollBehavior: () => ({ left: 0, top: 0 }),
});

/**
 * 重置路由
 */
export function resetRouter() {
    router.replace({ path: '/login' })
}


export {router};

